<div class="search-box">
	<form class="search_form layui-form" lay-filter="partner_search_form">
		<div class="layui-inline">
			<label class="layui-form-label">合作伙伴</label>
			<div class="layui-input-inline">
				<input type="text" name="partner_name" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">开始时间</label>
			<div class="layui-input-inline">
				<input readonly type="text" name="start_time" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">结束时间</label>
			<div class="layui-input-inline">
				<input readonly type="text" name="end_time" autocomplete="off" class="layui-input date">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">买断</label>
			<div class="layui-input-inline">
				<input type="radio" name="maiduan" lay-filter="maiduan" value="0" title="全部" checked>
				<input type="radio" name="maiduan" lay-filter="maiduan" value="1" title="是">
				<input type="radio" name="maiduan" lay-filter="maiduan" value="2" title="否">
			</div>
		</div>
		<div class="pack-up"></div>
	</form>
</div>
<div class="layui-btn-group">
	<a data-id="add_partner" data-url="{:url('partner/tpl_form')}" data-title="新增合作伙伴" class="layui-btn layui-btn-normal layui-btn-sm tap-nav"><i class="layui-icon layui-icon-add-1"></i>新增</a>
	<button class="layui-btn layui-btn-danger layui-btn-sm del-partner"><i class="layui-icon layui-icon-delete"></i>删除</button>
</div>
<table class="layui-hide" id="partner_list" lay-filter="partner_list"></table>
<script>
	var partner_list_url = "{:url('partner/ajaxPartner')}";
	var partner_delete_url = "{:url('partner/ajaxDelete')}";
	var partner_one_url = "{:url('partner/ajaxOneData')}";
	var cols = {$cols};
</script>
<script src="/static/js/partner.js" type="text/javascript" charset="utf-8"></script>
<script type="text/html" id="tool">
	<div class="layui-btn-group">
		<a class="layui-btn layui-btn-normal layui-btn-xs tap-nav" lay-event="edit" data-id="edit_partner_{{ d.partner_id}}" data-url="{:url('partner/tpl_form')}?partner_id={{ d.partner_id}}" data-title="修改合作伙伴"><i class="layui-icon layui-icon-edit"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del"><i class="layui-icon layui-icon-delete"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs hide-update" lay-event="update"><i class="layui-icon layui-icon-up"></i></a>
	</div>
</script>